package com.maywide.jdp.system.bean;

import java.util.List;
import java.util.Map;

import com.maywide.jdp.core.bean.MovedBean;
import com.maywide.jdp.system.entities.Module;
import com.maywide.jdp.system.vo.ModuleCheckedTree;
import com.maywide.jdp.system.vo.ModuleTree;

/**
 * 模块管理Bean接口
 * 
 * @author luoyang
 * @version 1.0
 * @since JDK1.6
 */
public interface ModuleBean extends MovedBean {
	/**
	 * 根据父ID查找到子模块树
	 * 
	 * @param conditions
	 *            查询条件
	 * @return 子模块列表
	 */
	List<ModuleTree> findSubTrees(Map<String,Object> conditions) throws Exception;

	/**
	 * 获得角色对应的模块
	 * @param id 角色ID
	 * @return
	 */
	public List<Module> findModules(String id) throws Exception;
	
	public List<ModuleCheckedTree> treeGrid(Map<String, Object> parameters) throws Exception;
}
